package com.hoas.api.server.listener;

import java.util.Map;

import com.hoas.api.core.intf.ApiListener;
import com.hoas.api.core.entity.BusinessUser;
import com.hoas.api.core.entity.api.BusinessApi;
import com.hoas.api.core.exception.BusinessException;

public class TestApiListener implements ApiListener {

	@Override
	public void before(BusinessUser user, BusinessApi api, Map<String, Object> parameter, Object result) throws BusinessException {
		
		System.out.println(user.getUserName() + ", " + api.getDescription() + ", " + parameter + ", " + result);
		
	}

	@Override
	public void after(BusinessUser user, BusinessApi api, Map<String, Object> parameter, Object result) throws BusinessException {

	}

	@Override
	public void exception(BusinessUser user, BusinessApi api, Map<String, Object> parameter, Exception e) throws BusinessException {

	}

}
